//ex10_10_8.cpp
#ifndef LIST_H__
#define LIST_H__

typedef unsigned long Item;

void visit_item(Item &item);

class List
{
    private:
        enum { MAX = 10 };
        Item items[MAX];
        int top;
    public:
        List();  
        bool isempty() const;
        bool isfull() const;
        bool add(Item &item);
        // bool pop(Item &item);
        void visit(void(*pf)(Item &));
};
#endif